package com.lkd.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.lkd.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigInteger;
import java.time.LocalDateTime;

/**
 * @Author: Z.lx
 * @Date: 2025/8/21 20:19
 * @Description:
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tb_order")
public class Order extends BaseEntity {
    @JsonSerialize(using = ToStringSerializer.class)
    private String id;//订单id
    private String orderNo;//订单编号
    private String thirdNo;//第三方订单编号
    private String innerCode;//货机编号
    @JsonSerialize(using = ToStringSerializer.class)
    private Long skuId;//商品id
    private String skuName;//商品名称
    private Integer classId;//商品类型id
    private Integer status;//订单状态
    private Integer amount;//订单金额
    private Integer price;//订单价格
    private String payType;//支付方式
    private Integer payStatus;//支付状态
    private Integer bill;//账单
    @TableField(value = "addr")
    private String address;// 地址
    private String regionId;//地区id
    private String regionName;//地区名称
    private Integer businessId;//商圈id
    private String businessName;//商圈名称
    private Integer ownerId;//商家id
    private Integer nodeId;//点位id
    private String nodeName;//点位名称
}
